﻿using _2112A_2_MES._chubowen;
using _2112A_2_MES._XiangHe;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace _2112A_2_MES.ChuBoWens
{
    /// <summary>
    /// 物料产品表
    /// </summary>
    public interface IMditemServiceChu: IApplicationService
    {
        /// <summary>
        /// 获取物料产品信息
        /// </summary>
        /// <param name="itemCode">物料编码</param>
        /// <param name="itemName">物料名称</param>
        /// <returns>返回物料产品表信息的泛型集合</returns>
        Task<InterSelect<object>> GetMditemList(string? itemCode, string? itemName, int pageIndex, int pageSize);

        /// <summary>
        /// 新增物料产品
        /// </summary>
        /// <param name="mditem"></param>
        /// <returns></returns>
        Task<int> AddMditem(MdItem mditem);

        /// <summary>
        /// 删除物料产品
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteMditem(int id);

        /// <summary>
        /// 获取物料产品
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<MdItem> GetMditem(int id);

        /// <summary>
        /// 修改物料产品
        /// </summary>
        /// <param name="mditem"></param>
        /// <returns></returns>
        Task<int> UpdateMditem(MditemDTO mditem);
    }
}
